﻿using System;

namespace NodeJS.fs
{
    public abstract class Stats
    {
        public int Dev;
        public long Ino;
        public int Mode;
        public int Nlink;
        public int Uid;
        public int Gid;
        public int Rdev;
        public long Size;
        public int Blksize;
        public int Blocks;
        public DateTime Atime;
        public DateTime Mtime;
        public DateTime Ctime;

        public abstract bool IsFile();
        public abstract bool IsDirectory();
        public abstract bool IsBlockDevice();
        public abstract bool IsCharacterDevice();
        /// <summary>
        /// only valid with fs.lstat()
        /// </summary>
        /// <returns></returns>
        public abstract bool IsSymbolicLink(); 
        public abstract bool IsFIFO();
        public abstract bool IsSocket();
    }
}
